<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改管理员信息</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/formvalidator.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/formvalidatorregex.js"></script>
<script type="text/javascript">
	$(function(){
		setTimeout( function(){$("select[name='admin.permit']").val(${admin.permit});},100);
		$.formValidator.initConfig({formid:"form",autotip:true});
		$("#email").formValidator({onshow:"请输入E-mail",onfocus:"注意E-mail格式",oncorrect:"E-mail格式正确"}).regexValidator({regexp:"email",datatype:"enum",onerror:"E-mail格式错误"});	
	})
</script>
</head>
<body>
<div class="pd10">	
	<div class="listbox">
		<form id="form" action="update.action" method="post">
			<div>
				<table class="addtab"  align="left">
					<tr>
						<th>用户名</th>
						<td>${admin.loginName}</td>
					</tr>
					<tr>
						<th>最后登录</th>
						<td><s:date name="admin.lastLoginTime" format="yyyy-MM-dd HH:mm:ss"/></td>
					</tr>
					<tr>
						<th>最后登录IP</th>
						<td>${admin.lastLoginIp}</td>
					</tr>	
					<tr>
						<th>E-mail</th>
						<td><input type="text" class="tx6" name="admin.email" value="${admin.email}"  title="请输入E-mail" id="email"/></td>
					</tr>
					<tr>
						<th>管理员权限</th>
						<td><select name="admin.permit">
						<option value=1>系统管理员</option>
						<option value=2 >管理员</option>
						</select></td>
					</tr>
					<tr>
						<th>真实姓名</th>
						<td><input type="text" name="admin.signature" class="tx6" title="请输入真实姓名" value="${admin.signature}" id="signature"/></td>
					</tr>
					<tr>
						<th>备注</th>
						<td><textarea id="textarea" name="admin.remark" class="tex3">${admin.remark}</textarea></td>
					</tr>			
				</table>
			</div>
			<div class="hidden">
			<input type="text" name="admin.id" value="${admin.id}"/>
			<input id="editsubmit" type="submit"/>
			</div>
		</form>
	</div>
</div>
</body>
</html>